package com.lingnan.utils;
import cn.hutool.core.lang.Snowflake;


/**
 * @author hehangjie
 * @date 2025/06/27
 */
public class IdUtil {

    private static Snowflake snowflake = cn.hutool.core.util.IdUtil.getSnowflake();

    /**
     * 生成long 类型的ID
     * @return
     */
    public static Long getId() {
        return snowflake.nextId();
    }

    /**
     * 生成String 类型的ID
     * @return
     */
    public static String getIdStr() {
        return snowflake.nextIdStr();
    }
}
